using System;

namespace BTKERP.Model
{
    #region GRNDetail
    /// <summary>
    /// This object represents the properties and methods of a GRNDetail.
    /// </summary>
    [Serializable]
    public class GRNDetail
    {
        protected Guid _id;
        protected int _sequence;
        protected Guid _gRNMasterId = Guid.Empty;
        protected Guid _productId = Guid.Empty;
        protected Guid _unitId = Guid.Empty;
        protected decimal _quantity;
        protected decimal _unitCost;
        protected decimal _sellPrice;
        protected decimal _availableQty;
        protected string _remark = String.Empty;
        protected DateTime _createdOn;
        protected string _createdBy = String.Empty;
        protected DateTime _updatedOn;
        protected string _updatedBy = String.Empty;

        public GRNDetail()
        {
        }

        #region Public Properties
        public Guid Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int Sequence
        {
            get { return _sequence; }
            set { _sequence = value; }
        }

        public Guid GRNMasterId
        {
            get { return _gRNMasterId; }
            set { _gRNMasterId = value; }
        }

        public Guid ProductId
        {
            get { return _productId; }
            set { _productId = value; }
        }

        public Guid UnitId
        {
            get { return _unitId; }
            set { _unitId = value; }
        }

        public decimal Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }

        public decimal UnitCost
        {
            get { return _unitCost; }
            set { _unitCost = value; }
        }

        public decimal SellPrice
        {
            get { return _sellPrice; }
            set { _sellPrice = value; }
        }

        public decimal AvailableQty
        {
            get { return _availableQty; }
            set { _availableQty = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        public DateTime CreatedOn
        {
            get { return _createdOn; }
            set { _createdOn = value; }
        }

        public string CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }

        public DateTime UpdatedOn
        {
            get { return _updatedOn; }
            set { _updatedOn = value; }
        }

        public string UpdatedBy
        {
            get { return _updatedBy; }
            set { _updatedBy = value; }
        }
        #endregion

    }
    #endregion
}
